package ooday02;

public class Animal {
    String name;
    int age;
    String colour;

    Animal(String name,int age,String colour){
        this.name=name;
        this.age=age;
        this.colour=colour;
    }
    void drink(){
        System.out.println(colour+"的"+age+"岁的名字叫"+name+"的在喝水");
    }
    void eat(){
        System.out.println(colour+"的"+age+"岁的名字叫"+name+"的在吃饭");
    }
}

